Skip to content

fix(cli): allow multiple provider profiles to be deleted - #3032

Merged
johntmyers merged 1 commit into
NVIDIA:mainfrom
grs:multi-profile-delete
Sep 1, 2026
Merged

fix(cli): allow multiple provider profiles to be deleted#3032
johntmyers merged 1 commit into
NVIDIA:mainfrom
grs:multi-profile-delete

Conversation

@grs

@grs grs commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Makes provider profile deletion more consistent with that of sandboxes and profiles by allowing the deletion of multiple items.

Related Issue

Closes #3029

Changes

  • Allow multiple profiles to be specified in the provider profile delete command.

Testing

  • mise run pre-commit passes
  • Unit tests added/updated
  • E2E tests added/updated (if applicable)

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

Signed-off-by: Gordon Sim <gsim@redhat.com>
@grs
grs requested review from a team, derekwaynecarr, mrunalp and sjenning as code owners August 31, 2026 12:18
@copy-pr-bot

copy-pr-bot Bot commented Aug 31, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@elezar elezar left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The batch loop still exits on the first RPC error because .into_diagnostic()? is inside the loop. For provider profiles, a missing, source-managed, or in-use profile returns an RPC error, so later IDs are never attempted.

This matches the current provider delete fail-fast behavior, but it conflicts with this issue's acceptance criteria to attempt each supplied profile and report each result independently. Could we continue through all IDs, print each failure, and return an aggregated nonzero error afterward? Please also add a mixed-result test such as success, in-use or missing, then success.

Follow-up: sandbox delete, provider delete, and workspace delete also stop on the first RPC error. Please consider a separate issue to define and standardize batch-delete error semantics across the CLI, including per-target reporting and aggregate exit status.

@grs

grs commented Aug 31, 2026

Copy link
Copy Markdown
Contributor Author

@elezar I propose to reword the acceptance criteria for the associated issue, then open a separate issue and PR for improving the error handling of deletion across all three resource types. Is that good with you?

@elezar

elezar commented Sep 1, 2026

Copy link
Copy Markdown
Member

@elezar I propose to reword the acceptance criteria for the associated issue, then open a separate issue and PR for improving the error handling of deletion across all three resource types. Is that good with you?

That's fine.

@grs

grs commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@elezar I propose to reword the acceptance criteria for the associated issue, then open a separate issue and PR for improving the error handling of deletion across all three resource types. Is that good with you?

That's fine.

New issue: #3102 (The acceptance criteria for this issue has also been updated)

@johntmyers johntmyers left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gator-agent

PR Review Status

This focused CLI change is project-valid through #3029, and the initial code review found no blocking defects. Thanks @elezar and @grs for clarifying that cross-command batch error aggregation belongs in #3102; I checked this patch against the updated, intentionally fail-fast acceptance criteria.

Blocking findings:

  • No blocking findings remain

Carried findings:

  • None

Non-blocking suggestions:

  • Add a short Fern example such as openshell provider profile delete custom-api custom-alt to docs/sandboxes/providers-v2.mdx so users can discover the new multi-ID form.
Gator metadata
  • Validation: Focused CLI consistency improvement linked to validated issue #3029
  • Docs: Agent CLI reference updated; a Fern usage example is suggested
  • Checks: DCO and vouch are green; current-head Branch Checks and Helm Lint dispatch is still pending
  • E2E: Not required for this CLI argument-cardinality change
  • Head SHA: adc08d913b3b1149ac8a6f9a0613dd10cb424358
  • Base SHA: 69a05ebb3b154e304a66fe80eed8504e889abc6d
  • Merge base SHA: 69a05ebb3b154e304a66fe80eed8504e889abc6d
  • Patch ID: a59218c808bc1fe35c787de9dc1f703aae709106
  • Gator payload: 7
  • Review mode: initial
  • Previous reviewed SHA: none
  • Review budget exhausted: no
  • Maintainer decision required: no
  • Next state: gator:in-review

@johntmyers johntmyers added the gator:in-review Gator is reviewing or awaiting PR review feedback label Sep 1, 2026
@johntmyers

Copy link
Copy Markdown
Collaborator

/ok to test adc08d9

@johntmyers johntmyers added gator:watch-pipeline Gator is monitoring PR CI/CD status and removed gator:in-review Gator is reviewing or awaiting PR review feedback labels Sep 1, 2026
@johntmyers

Copy link
Copy Markdown
Collaborator

@grs see above:

Add a short Fern example such as openshell provider profile delete custom-api custom-alt to docs/sandboxes/providers-v2.mdx so users can discover the new multi-ID form.

Please add this to the follow on PR that handles robust iteration when some deletions fail, we also will want to describe that behavior in the docs updates.

@grs

grs commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@grs see above:

Add a short Fern example such as openshell provider profile delete custom-api custom-alt to docs/sandboxes/providers-v2.mdx so users can discover the new multi-ID form.

Please add this to the follow on PR that handles robust iteration when some deletions fail, we also will want to describe that behavior in the docs updates.

Will do!

@johntmyers johntmyers added gator:approval-needed Gator completed review; maintainer approval needed and removed gator:watch-pipeline Gator is monitoring PR CI/CD status labels Sep 1, 2026
@johntmyers
johntmyers added this pull request to the merge queue Sep 1, 2026
Merged via the queue into NVIDIA:main with commit 07453f2 Sep 1, 2026
62 of 64 checks passed
@johntmyers

Copy link
Copy Markdown
Collaborator

gator-agent

Monitoring Complete

Monitoring is complete because this PR has merged.

Final status: Gator completed code review with no blocking findings, the current-head required checks were green, and maintainer approval was present before merge.

I removed the active gator:* label because there is nothing left for gator to monitor on this PR.

Gator metadata
  • Head SHA: adc08d913b3b1149ac8a6f9a0613dd10cb424358
  • Gator payload: 7
  • Previous state: gator:approval-needed
  • Terminal state: merged

@johntmyers johntmyers removed the gator:approval-needed Gator completed review; maintainer approval needed label Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(cli): allow multiple provider profiles to be deleted

3 participants